package com.myapp.struts.menu;

import java.util.ArrayList;

public class MenuGenerate extends IMenuGenerator {

    @Override
    public ArrayList<FoodItems> GenerateMenu(ArrayList<FoodItems> foodItem, String type) {
        if (type.equals(Constants.DINNER)) {
            Dinner a = new Dinner();
            return a.GenerateMenuAsType(foodItem);

        } else if (type.equals(Constants.EVENING_ONLY)) {
            Evening a = new Evening();
            return a.GenerateMenuAsType(foodItem);
        } else {
            AllDay a = new AllDay();
            return a.GenerateMenuAsType(foodItem);
        }


    }
}
